/* 未来科技风格背景与效果
 * 这个文件包含了用于登录和注册页面的共享科技风格样式
 */

// 基础容器样式 - 星空背景
.tech-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1a2e 50%, #16213e 100%);

    overflow: hidden;
    perspective: 1000px;

    // 星空效果
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:
            radial-gradient(1px 1px at 25px 50px, rgba(255, 255, 255, 0.8), transparent),
            radial-gradient(1px 1px at 75px 120px, rgba(255, 255, 255, 0.6), transparent),
            radial-gradient(1px 1px at 150px 80px, rgba(255, 255, 255, 0.9), transparent),
            radial-gradient(1px 1px at 220px 30px, rgba(255, 255, 255, 0.7), transparent),
            radial-gradient(1px 1px at 300px 150px, rgba(255, 255, 255, 0.5), transparent),
            radial-gradient(1px 1px at 380px 90px, rgba(255, 255, 255, 0.8), transparent),
            radial-gradient(1px 1px at 450px 40px, rgba(255, 255, 255, 0.6), transparent),
            radial-gradient(1px 1px at 520px 180px, rgba(255, 255, 255, 0.7), transparent),
            radial-gradient(1px 1px at 600px 70px, rgba(255, 255, 255, 0.9), transparent),
            radial-gradient(1px 1px at 680px 140px, rgba(255, 255, 255, 0.5), transparent);
        background-size: 700px 200px;
        background-repeat: repeat;
        pointer-events: none;
        z-index: 0;
        animation: twinkle 15s ease-in-out infinite;
    }

    // 流星特效
    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        pointer-events: none;
        z-index: 1;
        overflow: hidden;
    }
}

// Tech Grid Background - 保持禁用
.tech-grid {
    display: none;
}

@keyframes grid-move {
    0% {
        transform: rotateX(60deg) translateY(0) scale(2);
    }

    100% {
        transform: rotateX(60deg) translateY(50px) scale(2);
    }
}

// Digital data streams
.binary-stream {
    position: absolute;
    color: rgba(0, 255, 240, 0.3);
    font-family: monospace;
    font-size: 14px;
    line-height: 1;
    overflow: hidden;
    z-index: 1;
    user-select: none;
    white-space: nowrap;
    width: 50px;
}

.stream-1 {
    top: 10%;
    left: 5%;
    height: 80%;
    animation: binary-rain 15s linear infinite;
}

.stream-2 {
    top: 5%;
    right: 10%;
    height: 90%;
    animation: binary-rain 20s linear infinite;
}

.stream-1:after,
.stream-2:after {
    content: "01010101110001010111100101001010100110010101110100101001010101";
    position: absolute;
    top: 0;
    left: 0;
    word-break: break-all;
    animation: binary-scroll 8s linear infinite;
}

.stream-2:after {
    content: "10101010001101010000110101101010101001010010101010010101001010";
    animation-duration: 12s;
}

@keyframes binary-rain {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.3;
    }
}

@keyframes binary-scroll {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(100%);
    }
}

// Data lines
.data-lines {
    display: none;
}

.data-lines:before,
.data-lines:after {
    content: "";
    position: absolute;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.5), transparent);
    animation: data-line-move 8s linear infinite;
}

.data-lines:before {
    top: 25%;
    left: -50%;
}

.data-lines:after {
    top: 75%;
    left: -50%;
    animation-delay: 4s;
}

@keyframes data-line-move {
    0% {
        transform: translateX(-30%);
    }

    100% {
        transform: translateX(30%);
    }
}

// Data dashboard circles - 已禁用
.data-dashboard-circles {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.data-dashboard-circles:before,
.data-dashboard-circles:after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(0, 210, 255, 0.1);
    border-radius: 50%;
}

.data-dashboard-circles:before {
    top: -150px;
    left: -150px;
    animation: circle-pulse 4s ease-out infinite;
}

.data-dashboard-circles:after {
    bottom: -150px;
    right: -150px;
    animation: circle-pulse 4s 2s ease-out infinite;
}

@keyframes circle-pulse {
    0% {
        transform: scale(0);
        opacity: 0.8;
        border-color: rgba(0, 210, 255, 0.8);
    }

    100% {
        transform: scale(3);
        opacity: 0;
        border-color: rgba(0, 210, 255, 0);
    }
}

// Rotating gears
.rotating-gear {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23ffffff20" d="M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;

    &.top-left {
        top: 10%;
        left: 10%;
        animation: rotate-gear 30s linear infinite;
    }

    &.bottom-right {
        bottom: 10%;
        right: 10%;
        animation: rotate-gear 30s linear infinite reverse;
    }
}

// 流星特效 - 已禁用
.meteor {
    display: none;
}

@keyframes scan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

// 通用元素样式 - 镜面玻璃效果
.tech-box {
    position: relative;
    z-index: 2;
    width: 420px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border-radius: 24px;
    padding: 45px 40px;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.6),
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 2px 0 0 rgba(255, 255, 255, 0.03),
        inset -2px 0 0 rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;

    &:hover {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow:
            0 50px 150px rgba(0, 0, 0, 0.7),
            0 25px 80px rgba(0, 0, 0, 0.5),
            0 15px 40px rgba(0, 0, 0, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.15),
            inset 0 -2px 0 rgba(255, 255, 255, 0.08);
        transform: translateY(-3px);
    }

    // 跑马灯边框效果
    &:before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border-radius: 27px;
        background: linear-gradient(90deg,
                rgba(255, 255, 255, 0.8),
                rgba(255, 255, 255, 0.2),
                rgba(255, 255, 255, 0.8),
                rgba(255, 255, 255, 0.2),
                rgba(255, 255, 255, 0.8));
        background-size: 200% 100%;
        animation: border-flow 3s linear infinite;
        pointer-events: none;
        z-index: -1;
        mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        mask-composite: xor;
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        padding: 3px;
    }

    @media (max-width: 480px) {
        width: 320px;
        padding: 30px 25px;
    }
}

// Cyberpunk corners
.cyberpunk-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    z-index: 10;

    &.top-left {
        top: -2px;
        left: -2px;
        border-top: 3px solid rgba(255, 255, 255, 0.8);
        border-left: 3px solid rgba(255, 255, 255, 0.8);
    }

    &.top-right {
        top: -2px;
        right: -2px;
        border-top: 3px solid rgba(255, 255, 255, 0.8);
        border-right: 3px solid rgba(255, 255, 255, 0.8);
    }

    &.bottom-left {
        bottom: -2px;
        left: -2px;
        border-bottom: 3px solid rgba(255, 255, 255, 0.8);
        border-left: 3px solid rgba(255, 255, 255, 0.8);
    }

    &.bottom-right {
        bottom: -2px;
        right: -2px;
        border-bottom: 3px solid rgba(255, 255, 255, 0.8);
        border-right: 3px solid rgba(255, 255, 255, 0.8);
    }
}

.tech-header {
    margin-bottom: 35px;
    text-align: center;

    .title {
        font-size: 28px;
        color: rgba(0, 234, 255, 0.95);
        margin: 0 0 25px;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-weight: 600;
        text-shadow:
            0 0 10px rgba(0, 234, 255, 0.6),
            0 0 20px rgba(0, 234, 255, 0.4),
            0 0 30px rgba(0, 234, 255, 0.2);
        animation: text-glow 3s infinite alternate;
    }

    .tech-line {
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(0, 234, 255, 0.8), transparent);
        margin: auto;
        position: relative;

        &::before,
        &::after {
            content: '';
            position: absolute;
            height: 8px;
            width: 8px;
            background-color: rgba(0, 234, 255, 0.9);
            border-radius: 50%;
            top: -3px;
            animation: moveLight 4s infinite alternate;
            box-shadow: 0 0 12px rgba(0, 234, 255, 0.8);
        }

        &::before {
            left: 30%;
            animation-delay: 0s;
        }

        &::after {
            right: 30%;
            animation-delay: 2s;
        }
    }
}

.tech-input {
    background: transparent !important;

    .el-input__wrapper {
        background-color: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;

        &:hover {
            border-color: rgba(0, 234, 255, 0.4) !important;
        }

        &.is-focus {
            border-color: rgba(0, 234, 255, 0.6) !important;
            box-shadow: 0 0 10px rgba(0, 234, 255, 0.2) !important;
        }
    }

    .el-input__inner {
        background-color: transparent !important;
        border: none !important;
        color: #ffffff !important;
        height: 38px !important;
        box-shadow: none !important;

        &::placeholder {
            color: rgba(255, 255, 255, 0.5) !important;
        }

        &:focus {
            background-color: transparent !important;
            box-shadow: none !important;
        }
    }

    .el-input__prefix {
        color: rgba(0, 234, 255, 0.7) !important;
    }
}

.tech-button {
    width: 100%;
    height: 42px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #0ea5e9 0%, #00eaff 50%, #3b82f6 100%);
    border-radius: 6px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);

    .btn-text {
        position: relative;
        z-index: 2;
    }

    .btn-glitch {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #3c8ce7 0%, #00eaff 100%);
        opacity: 0;
        z-index: 1;
    }

    &:hover {
        background: linear-gradient(135deg, #0284c7 0%, #33f1ff 50%, #2563eb 100%);
        box-shadow: 0 0 25px rgba(0, 234, 255, 0.5);
        border-color: rgba(0, 234, 255, 0.5);
        transform: translateY(-1px);
    }
}

.tech-link {
    text-align: center;
    margin-top: 15px;
    color: #e6e6e6;

    a {
        color: #00eaff;
        cursor: pointer;
        text-decoration: underline;
        position: relative;

        &:after {
            content: '';
            position: absolute;
            width: 100%;
            height: 1px;
            bottom: -2px;
            left: 0;
            background-color: #00eaff;
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.4s ease-out;
        }

        &:hover {
            color: #4a9cf8;
            text-shadow: 0 0 8px rgba(0, 234, 255, 0.5);

            &:after {
                transform: scaleX(1);
                transform-origin: bottom left;
            }
        }
    }
}

.tech-circles {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;

    .circle {
        width: 12px;
        height: 12px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        opacity: 0.7;
        animation: pulseCircle 3s infinite;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);

        &:nth-child(2) {
            animation-delay: 1s;
        }

        &:nth-child(3) {
            animation-delay: 2s;
        }
    }
}

// 动画定义
@keyframes rotate-gear {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.8;
    }

    25% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    75% {
        opacity: 0.9;
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
    }

    25% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    75% {
        opacity: 0.9;
    }
}

@keyframes moveLight {
    0% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(10px);
    }
}

@keyframes pulse {
    0% {
        box-shadow:
            0 0 15px rgba(0, 234, 255, 0.3),
            0 0 30px rgba(0, 134, 255, 0.1),
            inset 0 0 10px rgba(0, 234, 255, 0.2);
        transform: translateZ(0px);
    }

    100% {
        box-shadow:
            0 0 30px rgba(0, 234, 255, 0.7),
            0 0 60px rgba(0, 134, 255, 0.3),
            inset 0 0 15px rgba(0, 234, 255, 0.4);
        transform: translateZ(10px);
    }
}

@keyframes pulseCircle {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 5px rgba(0, 234, 255, 0.5), 0 0 10px rgba(0, 234, 255, 0.3);
    }

    100% {
        text-shadow: 0 0 10px rgba(0, 234, 255, 0.8), 0 0 20px rgba(0, 234, 255, 0.5), 0 0 30px rgba(0, 234, 255, 0.3);
    }
}

@keyframes border-flow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

@keyframes meteor-fall {
    0% {
        transform: translateX(100px) translateY(-100px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(calc(-100vw - 100px)) translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
        opacity: 0;
    }

    20% {
        transform: translate(-5px, 5px);
        opacity: 0.5;
    }

    40% {
        transform: translate(-5px, -5px);
        opacity: 0;
    }

    60% {
        transform: translate(5px, 5px);
        opacity: 0.5;
    }

    80% {
        transform: translate(5px, -5px);
        opacity: 0;
    }

    100% {
        transform: translate(0);
        opacity: 0;
    }
}